'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	// 清理全部数据
	const collection = db.collection('support')
	let res = await collection.get()
	res.data.map(async(document) => {
	 return await collection.doc(document._id).remove();
	});
	
	//返回数据给客户端
	/* return {
		msg:'清理完毕',
		state:0
	} */
};
